package com.sky.mapper;

import com.sky.entity.User;
import com.sky.vo.UserReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.Map;

//操作user表
@Mapper
public interface UserMapper {
    User findUserByOpenId(String openid);

    void insert(User user);

    Integer countByMap(Map map);

    @Select("select * from user where id = #{id}")
    User getById(Long userId);


}
